import request from '@/utils/request'

// 查询收益记录列表
export function listProfitHistory(query) {
  return request({
    url: '/system/ProfitHistory/list',
    method: 'get',
    params: query
  })
}

// 查询收益记录详细
export function getProfitHistory(id) {
  return request({
    url: '/system/ProfitHistory/' + id,
    method: 'get'
  })
}

// 新增收益记录
export function addProfitHistory(data) {
  return request({
    url: '/system/ProfitHistory',
    method: 'post',
    data: data
  })
}

// 修改收益记录
export function updateProfitHistory(data) {
  return request({
    url: '/system/ProfitHistory',
    method: 'put',
    data: data
  })
}

// 删除收益记录
export function delProfitHistory(id) {
  return request({
    url: '/system/ProfitHistory/' + id,
    method: 'delete'
  })
}
